<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title></title>
    <link rel="stylesheet" href="__PUBLIC__/Mobile/xym/bootstrap/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/Mobile/xym/bootstrap/css/bootstrap-responsive.min.css"/>
    <link rel="stylesheet" href="__PUBLIC__/Mobile/xym/css/set.css"/>
    <link rel="stylesheet" href="__PUBLIC__/Mobile/xym/css/jlcx.css">
    <link rel="stylesheet" href="__PUBLIC__/Mobile/xym/css/font_size.css"/>
</head>
<body>

<div class="container-fluid m_out">
    <ul class="breadcrumb my_breadcrumb font15">
        <li><a href="#" class="font15"><i style="margin-right: 3px;" class="icon-home"></i>您的位置</a> <span class="divider">/</span></li>
        <li class="active font15">记录查询</li>
    </ul>
    <form method="post">
    <div class="my_sel">
        <select name="year" class="form-control input-medium font14">
            <for start="2016" end="$end_year"  step="1" name="yy" >
                <IF condition="$yy eq $year">
                    <option value="{$yy}" selected>{$yy}</option>
                    <ELSE/>
                    <option value="{$yy}">{$yy}</option>
                </IF>
            </for>
        </select>
        <span class="ye_m font14">年</span>
        <select name="month" class="form-control input-medium font14">
            <for start="1" end="13"  step="1" name="mm" >
                <IF condition="$mm eq $month">
                    <option value="{$mm}" selected>{$mm}</option>
                    <ELSE/>
                    <option value="{$mm}">{$mm}</option>
                </IF>
            </for>
        </select>
        <span class="ye_m font14">月</span>
        <input type="submit" class="btn" value="提交">
    </div>
    </form>
    <div class="list-div my_list_div" id="listDiv">
        <table cellpadding="0" cellspacing="0" border="1" class="table table-hover table-bordered my_table font14">
            <tr>
                <th class="xMu font15">项目</th>
                <th class="font15">本月</th>
            </tr>
			<IF condition="$grade eq '合伙人'">
				<tr>
                <td><b>事业合伙人人数</b></td>
                <td><?php echo $row['add_hhr1_num']+$row['add_hhr2_num']+$row['add_hhr3_num'];?></td>
            </tr>
				<ELSE/>
			</IF>
            <tr>
                <td><b>会员人数</b></td>
                <td><?php echo $row['add_hy1_num']+$row['add_hy2_num']+$row['add_hy3_num'];?></td>
            </tr>
            <tr>
                <td><b>游客人数</b></td>
                <td>{$row.add_yk_num|default=0}</td>
            </tr>
			<IF condition="$grade eq '合伙人'">
				<tr>
                <td><b>事业合伙人加盟费预收</b></td>
                <td><?php echo ($row['add_hhr1_num']+$row['add_hhr2_num']+$row['add_hhr3_num'])*30000;?></td>
            </tr>
            <tr>
                <td><b>事业合伙人加盟费奖励</b></td>
                <td><?php echo $row['add_hhr1_money']+$row['add_hhr2_money']+$row['add_hhr3_money'];?></td>
            </tr>
				<ELSE/>
			</IF>
            <tr>
                <td><b>会员会费预收</b></td>
                <td><?php echo ($row['add_hy1_num']+$row['add_hy2_num']+$row['add_hy3_num'])*365;?></td>
            </tr>
            <IF condition="$grade eq '合伙人'">
			<tr>
                <td><b>会员会费奖励</b></td>
                <td><?php echo $row['add_hy1_money']+$row['add_hy2_money']+$row['add_hy3_money'];?></td>
            </tr>
			<tr>
                <td><b>直辖会员总数奖励</b></td>
                <td><?php echo $row['hhr_hytd_zhf'];?></td>
            </tr>
				<tr>
                <td><b>所辖合伙人会员奖励</b></td>
                <td><?php echo ($row['sxhhr1_hy_jl']+$row['sxhhr2_hy_jl']+$row['sxhhr3_hy_jl']);?></td>
            </tr>
				<ELSE/>
				<tr>
                <td><b>会员会费积分奖励</b></td>
                <td><?php echo $row['hy1_jf']+$row['hy2_jf']+$row['hy3_jf'];?></td>
            </tr>
			</IF>
            <td><b>网购消费金额</b></td>
                <td><?php echo $row['sxhhr1_buy_money']+$row['sxhhr2_buy_money']+$row['sxhhr3_buy_money']+$row['hy1_buy_money']+$row['hy2_buy_money']+$row['hy3_buy_money']+
				$row['hhr_hytd_buy_money'];?></td>
            </tr>
            <tr>
                <if condition="$grade eq '合伙人'"><td><b>网购消费奖励</b></td><else/><td><b>网购消费积分奖励</b></td></if>
                <td><?php echo $row['sxhhr1_buy_pay']+$row['sxhhr2_buy_pay']+$row['sxhhr3_buy_pay']+$row['hy1_buy_pay']+$row['hy2_buy_pay']+$row['hy3_buy_pay']+
				$row['hhr_hytd_buy_money']*$row['per_9'];?></td>
            </tr>
            <tr>
                <td><b>旅游消费金额</b></td>
                <td>{$row["my_ly_money"]|default=0}</td>
            </tr>
            <tr>
                <td><b>旅游消费积分奖励</b></td>
                <td>{$row["my_ly_jf"]|default=0}</td>
            </tr>
			<tr>
                <td><b>我的购物/旅游送积分合计</b></td>
                <td><?php echo $row['my_buy_jf']+$row['my_ly_jf'];?></td>
            </tr>
            <tr>
                <td colspan="2"></td>
            </tr>
            <tr>
                <th colspan="2" class="font15">统计项</th>
            </tr>
            
            
			<IF condition="$grade eq '合伙人'">
			<tr>
                <td><b>奖励合计</b></td>
                <td><?php echo $row['add_hhr1_money']+$row['add_hhr2_money']+$row['add_hhr3_money']+$row['add_hy1_money']+
				$row['add_hy2_money']+$row['add_hy3_money']+$row['hhr_hytd_zhf']+$row['sxhhr1_hy_jl']+$row['sxhhr2_hy_jl']+$row['sxhhr3_hy_jl']+
				$row['sxhhr1_buy_pay']+$row['sxhhr2_buy_pay']+$row['sxhhr3_buy_pay']+$row['hy1_buy_pay']+$row['hy2_buy_pay']+$row['hy3_buy_pay']+
				$row['hhr_hytd_buy_money']*$row['per_9']
				;?></td>
            </tr>
			<tr>
                <td><b>积分账户</b></td>
                <td><?php echo $row['add_jf_currency']+$row["my_buy_jf"]+$row["my_ly_jf"];?></td>
            </tr>
			<ELSE/>
			<tr>
                <td><b>奖励合计</b></td>
                <td><?php echo $row['add_hhr1_money']+$row['add_hhr2_money']+$row['add_hhr3_money']+$row['add_hy1_money']+
				$row['add_hy2_money']+$row['add_hy3_money']+$row['hhr_hytd_zhf']+$row['sxhhr1_hy_jl']+$row['sxhhr2_hy_jl']+$row['sxhhr3_hy_jl'];?></td>
            </tr>
			<tr>
                <td><b>积分A账户</b></td>
                <td><?php echo $row['add_jf_limit']+$row["my_buy_jf"]/2+$row["my_ly_jf"]/2;?></td>
            </tr>
			<tr>
                <td><b>积分B账户</b></td>
                <td><?php echo $row['add_jf_currency']+$row["my_buy_jf"]/2+$row["my_ly_jf"]/2;?></td>
            </tr>
			</IF>
            
        </table>

    </div>

</div>

</body>
<script src="__PUBLIC__/Mobile/xym/js/jquery.min.js"></script>
<script src="__PUBLIC__/Mobile/xym/bootstrap/js/bootstrap.min.js"></script>
</html>